package second.service.advice;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class StudentAroundAdvise implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("around advise before");
        Object obj = methodInvocation.proceed();
        System.out.println("around advise after");
        return obj;
    }
}
